﻿README : MATLAB CODE
————————————————————



ESTIMATION:

- estimation_short_restat.m: Estimate baseline model. 

- func/imo_2011_NLS_all3FE.m: Objective function for baseline model


- estimation.m:

  

* Robustness check: Separate estimates for each product
  

* Create figures and tables with results.


- func/imo_2011_NLSFE.m: Objective function for model that is estimated separately for each product.


- monte_carlo_measurement_error.m : Simulate theory model for many products and destinations and estimate model (Tables 4 and 5). 



MODEL
—————
- 
welfare_trade_barriers.m: Simulate model and calculate results for Table 6. 

- func/imo_solve.m: Solve equilibrium.
- solve_pi_xx.m: Calculate global profits pi conditional on price index. 

- cutoff_imo_x.m: Calculate export cutoffs conditional on price index.


DATA:

data_2004_count_40thresh
data_2004_count_20thresh
